#pragma once
#include <Winhttp.h>
#include "Http.h"
#include "BinFx.h"
#include "String.h"

class HttpFx:public Http{
public:
	static String*	hostName(void);

	uint	checksum;
	uint	version;

	HttpFx	(PTSTR,ushort);
	Bin*	get	(PTSTR,PTSTR,ushort);

private:
	TCHAR	buffer[MAX_PATH];
	PTSTR	serialNum;
	PTSTR	agent(PTSTR,ushort);
	void	onCallback	(HINTERNET,uint,LPVOID,uint);
};